<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>福州动车段办公用品管理系统</title>
    <!-- Bootstrap Styles-->
    @section('css')
    <link href="{{asset('assets/css/bootstrap.css')}}" rel="stylesheet" />
    <!-- FontAwesome Styles-->
    <link href="{{asset('assets/css/font-awesome.css')}}" rel="stylesheet" />
    <!-- Custom Styles-->
    <link href="{{asset('assets/css/custom-styles.css')}}" rel="stylesheet" />
    <!-- Google Fonts-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    @show
    <script src="{{asset('assets/js/excel.js')}}"></script>
</head>
<body>
<div id="wrapper">
    <nav class="navbar navbar-default top-navbar" role="navigation">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="">

                <strong><i class="icon fa fa-tags"></i> 办公用品管理系统</strong>
            </a>
            <div id="sideNav" href="">
                <i class="fa fa-bars icon"></i>
            </div>
        </div>

        <ul class="nav navbar-top-links navbar-right">

            <!-- /.dropdown -->
            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                    <i class="fa fa-user fa-fw fa-x"></i><span style="color: #d62728">{{Auth::user()->email}}</span><i class="fa fa-caret-down"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li><a href="{{url('reset')}}"><i class="fa fa-user fa-fw"></i> 重置密码</a>
                    </li>
                    <li><a href="#"><i class="fa fa-gear fa-fw"></i> 用户设置</a>
                    </li>
                    <li class="divider"></li>
                    <li><a href="{{ url('/logout') }}"><i class="fa fa-sign-out fa-fw"></i> 退出账号</a>
                    </li>
                </ul>
                <!-- /.dropdown-user -->
            </li>
            <!-- /.dropdown -->
        </ul>
    </nav>
    <!--/. NAV TOP  -->
    <nav class="navbar-default navbar-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="main-menu">
                <li>
                    <a href="{{url('home')}}"><i class="fa fa-desktop"></i> 主页</a>
                </li>
                @if (Auth::user()->department_type == '1')
                    <li>
                        <a href="#"><i class="fa fa-list-ul"></i> 领用录入<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{{url('input_list')}}">办公用品列表</a>
                            </li>
                            <li>
                                <a href="{{url('inputed_list')}}">录入记录</a>
                            </li>
                        </ul>
                    </li>
                    @endif
                @if (Auth::user()->department_type == '0')
                    <li>
                        <a href="#"><i class="fa fa-list-ul"></i> 审核管理<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="{{url('order_list')}}">待审核</a>
                            </li>
                            <li>
                                <a href="{{url('order_list_approval')}}">已审核</a>
                            </li>
                        </ul>
                    </li>

                <li>
                    <a href="#"><i class="fa fa-sitemap"></i> 用品管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="{{url('product_list')}}">办公用品列表</a>
                        </li>
                        <li>
                            <a href="{{url('product_add')}}">新增办公用品</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="fa fa-thumb-tack"></i> 部门管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="{{url('department_list')}}">部门列表</a>
                        </li>
                        <li>
                            <a href="{{url('department_add')}}">新增部门</a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="fa fa-group"></i> 用户管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a href="{{url('user_list')}}">用户列表</a>
                        </li>
                        <li>
                            <a href="{{url('user_add')}}">新增用户</a>
                        </li>
                    </ul>
                </li>
                @endif
                <li>
                    <a href="{{url('reset')}}"><i class="fa fa-pencil-square-o"></i> 修改密码</a>
                </li>


            </ul>

        </div>

    </nav>
    <!-- /. NAV SIDE  -->
    <div id="page-wrapper">

        <div class="header">
            @section('head')
             <h3 class="page-header">
             </h3>
             <ol class="breadcrumb">
                <li><a href="#">主页</a></li>
                <li><a href="#">空白</a></li>
                <li class="active">数据</li>
             </ol>
            @show
        </div>

        <div id="page-inner">

            @if($errors->first())
                <div class="alert alert-info alert-dismissible" role="alert">
                  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                  <strong>{{$errors->first()}}</strong> 
                </div>

        @endif
        @yield('contain')
        <!-- /. PAGE INNER  -->
        </div>
    </div>
    <!-- /. PAGE WRAPPER  -->
</div>

<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="confirmBox">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel"><span style="color: #d62728;top: 3px;left: -2px;" class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>信息框</h4>
            </div>
            <div class="modal-body">
                你确认执行该操作?
            </div>
            <div class="modal-footer">
                <a href="" class="btn btn-primary  " role="button" id="confirmBoxOk"><i class="fa fa-check-circle"> </i>确认</a>
                <button type="button" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times"></i>取消</button>
            </div>
        </div>
    </div>
</div>
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->

@section('js')
<script src="{{asset('assets/js/jquery-1.10.2.js')}}"></script>
<!-- Bootstrap Js -->
<script src="{{asset('assets/js/bootstrap.min.js')}}"></script>
<!-- Metis Menu Js -->
<script src="{{asset('assets/js/jquery.metisMenu.js')}}"></script>
<!-- Custom Js -->
<script src="{{asset('assets/js/custom-scripts.js')}}"></script>

@show
</body>
</html>
